<legend class='hyc-legend'>
    <i class="fa fa-list-ol"></i>&nbsp;
    <span>运单列表</span>
</legend>
<div class="row">
    <div class="col-md-1 text-right top7">订单号</div>
    <div class="col-md-3">
        <div class="form-group">
            <input type="text" class="form-control hyc-color" ng-model="waybill.orderCode" placeholder="订单号">
        </div>
    </div>
    <div class="col-md-4">
        &nbsp;
    </div>
    <div class="col-md-4">
        <div class="form-group text-right">
            <div class="btn btn-default btn-sm btn-warning" ng-click="loadData('query')">查询</div>&nbsp;&nbsp;&nbsp;
            <div class="btn btn-default btn-sm" ng-click="clearQuery()">重置</div>
        </div>
    </div>
</div>
<div>
    <ul class="nav nav-tabs">
        <li ng-class="{true: 'active'}[tab.isActive == true]" ng-repeat="tab in waybillObj.tabs track by $index" ng-click="checkTab(tab, $index)">
            <a href="#" data-toggle="tab">{{tab.name}}</a>
        </li>
    </ul>
    <div class="tab-content">
        <div class="tab-pane" ng-class="{true: 'active'}[tab.isActive == true]" ng-repeat="tab in waybillObj.tabs track by $index">
            <table class="table table-bordered" style="margin-top: 10px;">
                <tr>
                    <th class="text-center">订单编号</th>
                    <th class="text-center">起运地</th>
                    <th class="text-center">要求发运时间</th>
                    <th class="text-center">要求到达时间</th>
                    <th class="text-center">目的地省份</th>
                    <th class="text-center">目的地城市</th>
                    <th class="text-center">运单状态</th>
                    <th class="text-center">是否加急</th>
                    <th class="text-center">是否带伤发运</th>
                    <th class="text-center">金额</th>
                    <th class="text-center">运输距离</th>
                    <th class="text-center" ng-show="isOption">操作</th>
                </tr>
                <tr ng-repeat="item in waybillObj.waybillList track by $index">
                    <td class="text-center">{{item.orderCode}}</td>
                    <td class="text-center">{{item.departureCity}}</td>
                    <td class="text-center">{{item.departureTime | date: 'yyyy-MM-dd HH:mm:ss'}}</td>
                    <td class="text-center">{{item.arrivalTime | date: 'yyyy-MM-dd HH:mm:ss'}}</td>
                    <td class="text-center">{{item.destProvince}}</td>
                    <td class="text-center">{{item.destCity}}</td>
                    <td class="text-center">{{item.waybillStatusText}}</td>
                    <td class="text-center">{{item.isUrgent == '1'?'是':'否'}}</td>
                    <td class="text-center">{{item.isDamage == '1'?'是':'否'}}</td>
                    <td class="text-center">&yen;{{item.confirmTotalCost | number: 2}}</td>
                    <td class="text-center">{{item.distance}}</td>
                    <td class="text-center" ng-show="isOption">
                        <a href="javascript:;" ng-click="quit(item)">退单</a>
                    </td>
                </tr>
                <tr ng-if="waybillObj.waybillList.length <= 0">
                    <td colspan="12">
                        <div class="hyc-color text-center">
                            暂无符合条件的数据
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div ng-include="pageIncludeUrl" ng-if="waybillObj.waybillList.length > 0"></div>
</div>
